Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Add operators for Deformable ConvNets/DFF #6298

Merged
merged 22 commits into from
Jun 17, 2017
Merged

Add operators for Deformable ConvNets/DFF #6298

merged 22 commits into from
Jun 17, 2017

Conversation

YuwenXiong
Copy link
Contributor

No description provided.

@piiswrong
Copy link
Contributor

piiswrong commented May 17, 2017

code looks in good shape.

two general comments:
we don't indent in namespaces.
please add some tests for your operators in tests/python/gpu/test_operators_gpu.py

@YuwenXiong
Copy link
Contributor Author

Hi @piiswrong , sorry for the delay. Now test code for psroipoling, deformable convolution/psroipooling has been added.

@piiswrong
Copy link
Contributor

piiswrong commented May 24, 2017

Could you also add a check_numerical_gradient test in addition to consistency checks?

Its generally a good habit to check gradient. We have had people discovering their ops were outputing wrong gradient on corner cases when they submit PR. The model still trains with slightly wrong gradient but you often get better acc by correcting it.

@YuwenXiong YuwenXiong changed the title Add operators for Deformable ConvNets/FCIS/DFF Add operators for Deformable ConvNets/DFF May 27, 2017
@YuwenXiong
Copy link
Contributor Author

It seems that building check always reports libdc1394 error: Failed to initialize libdc1394

@sbodenstein
Copy link
Contributor

@orpine, @piiswrong: we would like to use this PR. What is still preventing it from being merged?

}

MXNET_REGISTER_OP_PROPERTY(_contrib_DeformableConvolution, DeformableConvolutionProp)
.describe(R"code(Compute *N*-D convolution on *(N+2)*-D input.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These docs seems to be copied from standard conv. Could you updated it to describe DeformableConvolution or remove inaccurate doc and insert a link to the original paper?

DMLC_REGISTER_PARAMETER(DeformablePSROIPoolingParam);

MXNET_REGISTER_OP_PROPERTY(_contrib_DeformablePSROIPooling, DeformablePSROIPoolingProp)
.describe("Performs region-of-interest pooling on inputs. Resize bounding box coordinates by "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same. updated/remove docs and link to paper

@piiswrong
Copy link
Contributor

@sbodenstein @orpine
There are too many PRs I somehow overlooked this.

Will try to get it merged soon.

const TShape& pad, const TShape& stride, const TShape& dilation,
const uint32_t deformable_group, DType* data_col) {
if (2 == kernel_shape.ndim()) {
LOG(FATAL) << "not implemented";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

say "only implemented in GPU"

@YuwenXiong
Copy link
Contributor Author

Updated, please have a check. @piiswrong

@piiswrong
Copy link
Contributor

merged. Thanks.

@piiswrong piiswrong merged commit ce2bca6 into apache:master Jun 17, 2017
@piiswrong
Copy link
Contributor

Are you planning to submit the algorithms that use these ops as examples?

@piiswrong
Copy link
Contributor

Alternatively you can put a link to your repos in example/readme

@YuwenXiong
Copy link
Contributor Author

@piiswrong Thanks for your advice, I've added a link #6754

Guneet-Dhillon pushed a commit to Guneet-Dhillon/mxnet that referenced this pull request Sep 13, 2017
* Add operators for Deformable ConvNets/FCIS/DFF

* fix programming rule to meet pr rule

* fix programming rule to meet pr rule

* fix programming rule to meet pr rule

* minor fix channel operator

* minor fix deformable conv

* fix a stupid error

* add test code

* add test code

* remove channel operator and add gradient check

* remove redundant print

* fix unittest code

* dummy commit to trigger building check

* dummy commit to trigger building check

* Update deformable_convolution-inl.h

* Update deformable_im2col.h

* Update deformable_convolution.cc

* Update deformable_psroi_pooling.cc
daeyun added a commit to daeyun/vision that referenced this pull request Oct 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants